import axios from "@/axios";

//登录接口
export function login(data) {
    return axios.post("/login", data)
}
//获取用户用户名
export function getUserInfo() {
    return axios.get('/admin/user/info')
}
//修改密码
export function updateAdminPassword(data) {
    console.log(data)
    return axios.post("/admin/password/update", data)
}

// 注册接口
export function register(data) {
    return axios.post("/user/register", data)
}

// 获取用户信息
export function getUserDetailInfoById(data) {
    return axios.post("/user/information", data)
}
